Element.GetValidTypes
Description:
Obtains a set of types that are valid for all given elements.
Obtains a set of types that are valid for all given elements.
Overloads (2):
GetValidTypes(Document,ICollection[ElementId])
public static ICollection<ElementId> GetValidTypes(
Document document,
ICollection<ElementId> elementIds
)
-
documentThe document.
-
elementIdsA collection of element IDs.
Return Value
ICollection<ElementId>
A set of element IDs of types that are valid for these elements or an empty set if any element cannot have a type assigned.
-
Thrown when at least one of the elements does not exist in the document.
-
A non-optional argument was NULL